import request from '@/utils/request'

export default {

  getList: function(data) {
    return request({
      url: '/storeHouse/listByPage',
      method: 'post',
      data
    })
  },
  save: function(data) {
    return request({
      url: '/storeHouse/save',
      method: 'post',
      data
    })
  },
  changeStatus: function(id) {
    return request({
      url: '/storeHouse/changeStatus/'+id,
      method: 'get',
    })
  },
  remove: function(id) {
    return request({
      url: '/storeHouse/delete/'+id,
      method: 'get',
    })
  },
  list: function(needCapacity) {
    return request({
      url: '/storeHouse/list/'+needCapacity,
      method: 'get',
    })
  },
  getHouseName: function(id) {
    return request({
      url: '/storeHouse/getHouseName/'+id,
      method: 'get',
    })
  },
  
}
